package com.qf.service;

import com.qf.dao.UserDao;
import com.qf.pojo.User;

import java.util.List;

/**
 * @author mkr
 * @version V1.0
 * @Project java2203-mkr
 * @Package com.qf.service
 * @Description:
 * @Date 2022/6/2 9:33
 */
public class UserServiceIpml2 implements UserService {
    //声明userDao接口属性,这个对象有spling进行实例化，也就是赋值进来
    private UserDao userDao;
    //属性的get方法
    public UserDao getUserDao() {
        return userDao;
    }
    //属性的set方法
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void registUser() {
        userDao.inserUser();
        System.out.println("====UserService第二个实现类=========");
    }

    @Override
    public List<User> findUserAll() {
        return null;
    }

    @Override
    public void insertUser(User user) {

    }

    @Override
    public void updateUser(User user) {

    }

    @Override
    public void deleteUser(Integer id) {

    }
}
